<html>

<head>
    <title>RetroGamelib Documentation</title>
    <link rel='stylesheet' href='style.css'>
</head>

<body>

    <!-- Header -->
    <h1>Retro Game Library Documentation</h1>

    <!-- Navigation -->
<div class='nav'>
    <a href='index.html'>index</a> 
    <a href='display.html'>display</a> 
    <a href='button.html'>button</a> 
    <a href='font.html'>font</a> 
    <a href='gameobject.html'>gameobject</a> 
    <a href='util.html'>util</a> 
    <a href='camera.html'>camera</a> 
    <a href='clock.html'>clock</a> 
    <a href='geometry.html'>geometry</a> 
    <a href='constants.html'>constants</a>
    <a href='dialog.html'>dialog</a>
</div>
<br/>


    <!-- Main content goes here -->
    <h2>retrogamelib.font</h2>
    The font module includes a Font object for both the NES and GameBoy fonts. It works similarly to pygame's font module.
    
    <blockquote>
        <b>font.Font(object)</b>
        <blockquote>
            <b>__init__(font, color=(255, 255, 255))</b><br/>
            Initialise a new Font object. <code>font</code> should be one of the <a href='constants.html#fonts'>font constants</a>. <code>color</code> should be an RGB tuple for the color of the font.
        </blockquote>
        <blockquote>
            <b>render(text)</b>  -> return pygame.Surface<br/>
            Renders a string of <code>text</code>. Returns a pygame.Surface.
        </blockquote>
        <blockquote>
            <b>get_width()</b>  -> return int<br/>
            Returns the width of a single font char.
        </blockquote>
        <blockquote>
            <b>get_height()</b>  -> return int<br/>
            Returns the height of a single font char.
        </blockquote>
    </blockquote>
    <a name='fonts'></a>
    
    <!-- Footer/Copyright Notice -->
    <br/><br/>
    <center>Copyright &copy; 2009, pymike and saluk</center>

</body>

</html>
